"""
获取请求头
"""
import requests
def get_header():
    url = url = "http://ihrm2-test.itheima.net/api/sys/login"
    json_data = {"mobile": "13800000002","password": "123456"}
    resp = requests.post(url=url, json=json_data)
    token = resp.json().get("data")
    header = {"Content-Type": "application/json",
              "Authorization": "Bearer " + token}
    return header

